
if [[ $ENABLE_ETH = y && $ENABLE_PPC = y ]]; then
echo "
# UCF file generated for Power PC with Ethernet.
# Copyright 2007, Pico Computing, Inc.
# PROJ is $PROJ

NET \"CLOCK1_PAD\" TNM_NET = \"CLOCK1_PAD\";
TIMESPEC \"TS_CLOCK1_PAD\" = PERIOD \"CLOCK1_PAD\" 20 ns HIGH 50 %;

NET \"PPCSystem/edk_blackbox/C405RSTCHIPRESETREQ\" TIG;
NET \"PPCSystem/edk_blackbox/C405RSTCORERESETREQ\" TIG;
NET \"PPCSystem/edk_blackbox/C405RSTSYSRESETREQ\" TIG;
#NET \"PPCSystem/edk_blackbox/RSTC405RESETCHIP\" TIG;
#NET \"PPCSystem/edk_blackbox/RSTC405RESETCORE\" TIG;
#NET \"PPCSystem/edk_blackbox/RSTC405RESETSYS\" TIG;

NET \"PPCSystem/edk_blackbox/EICC405EXTINPUTIRQ\" TIG;

############################################################
# External GMII Constraints                                #
############################################################
# Gigabit Ethernet PHY Pins
NET \"ETHER_GTX_CLK\" LOC = \"H1\"  | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_RX_CLK\" LOC = \"L1\"   | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_RX_CTL\" LOC = \"M1\"   | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_RX_ER\" LOC = \"K3\"    | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
# ETHER_RX[7:0]
NET \"ETHER_RX<0>\" LOC = \"M2\"   | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_RX<1>\" LOC = \"M3\"   | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_RX<2>\" LOC = \"L2\"   | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_RX<3>\" LOC = \"N2\"   | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_RX<4>\" LOC = \"K1\" | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_RX<5>\" LOC = \"P1\" | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_RX<6>\" LOC = \"P2\" | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_RX<7>\" LOC = \"N4\" | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_TX_CLK\" LOC = \"K2\" | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_TX_ER\" LOC = \"G1\" | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_TX_EN\" LOC = \"J2\" | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
# ETHER_TX[7:0]
NET \"ETHER_TX<0>\" LOC = \"H2\"  | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_TX<1>\" LOC = \"G2\"  | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_TX<2>\" LOC = \"F1\"  | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_TX<3>\" LOC = \"E2\"  | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_TX<4>\" LOC = \"E1\"  | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_TX<5>\" LOC = \"F2\"  | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_TX<6>\" LOC = \"E3\"  | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;
NET \"ETHER_TX<7>\" LOC = \"D3\"  | IOSTANDARD = LVCMOS25 | IOBDELAY = NONE;

NET \"PPCSystem/edk_blackbox/V4MEMAC_PLBINTFCE_TX_CLIENT_CLK\" PERIOD = 8.0 ns HIGH 50 %;
NET \"PPCSystem/edk_blackbox/V4MEMAC_PLBINTFCE_RX_CLIENT_CLK\" PERIOD = 8.0 ns HIGH 50 %;

NET \"ETHER_RESET\" TIG;
NET \"ETHER_RX<*>\" IOBDELAY=NONE;
NET \"ETHER_RX_CTL\"  IOBDELAY=NONE;
NET \"ETHER_RX_ER\"  IOBDELAY=NONE;
NET \"ETHER_RX_CLK\" TNM_NET = \"GMIIRXCLK_GRP\";
NET \"ETHER_GTX_CLK\" TNM_NET = \"GMIITXCLK_GRP\";
NET \"ETHER_TX_CLK\" TNM_NET = \"MIITXCLK_GRP\";

TIMESPEC \"TS_MIITXCLKOUT\" = FROM \"MIITXCLK_GRP\" TO \"PADS\" 8.0 ns;
TIMESPEC \"TS_GMIITXCLKOUT\" = FROM \"GMIITXCLK_GRP\" TO \"PADS\" 8.0 ns;
TIMESPEC \"TS_GMIIRXCLKIN\" = FROM \"PADS\" TO \"GMIIRXCLK_GRP\" 8.0 ns;

NET \"ETHER_TX_CLK\" PERIOD = 40 ns HIGH 50 %;
NET \"ETHER_GTX_CLK\" PERIOD = 8.0 ns;
NET \"ETHER_RX_CLK\" PERIOD = 8.0 ns HIGH 50 %;
NET \"ETHER_TX_CLK\"  MAXSKEW= 1.0 ns;
NET \"ETHER_TX_CLK\" TNM_NET = \"ETHER_TX_CLK\";
NET \"ETHER_RX_CLK\" TNM_NET = \"ETHER_RX_CLK\";
"
fi

if [[ $ENABLE_ETH = n && $ENABLE_PPC = y ]]; then
echo "
# UCF file generated for Power PC without Ethernet.
# Copyright 2007, Pico Computing, Inc.
# PROJ is $PROJ

NET \"CLOCK1_PAD\" TNM_NET = \"CLOCK1_PAD\";
TIMESPEC \"TS_CLOCK1_PAD\" = PERIOD \"CLOCK1_PAD\" 20 ns HIGH 50 %;

NET PPCSystem/edk_blackbox/ppc405_0/C405RSTCHIPRESETREQ TIG;
NET PPCSystem/edk_blackbox/ppc405_0/C405RSTCORERESETREQ TIG;
NET PPCSystem/edk_blackbox/ppc405_0/C405RSTSYSRESETREQ  TIG;
"
fi

if [ $ENABLE_PPC = n ]; then
echo "
# UCF file generated for without Power PC.
# Copyright 2007, Pico Computing, Inc.
# PROJ is $PROJ
 
# NET \"CLOCK1_PAD\" TNM_NET = \"CLOCK1_PAD\";
# TIMESPEC \"TS_CLOCK1_PAD\" = PERIOD \"CLOCK1_PAD\" 20 ns HIGH 50 %;

#NET \"PPCSystem/Clker\" TNM_NET = \"ppc_clk\";
#TIMESPEC \"TS_ppc_clk\" = PERIOD \"ppc_clk\" 20 ns HIGH 50 %;

#NET CFClock TIG;
#NET CFDecoder/CFClockGen/ClockOutPreBuf TIG;
#NET CFDecoder/MemRead TIG;
#NET CFDecoder/AttribRead TIG;
#INST \"*CFDecoder*\" TIG;

#NET myrst TIG;

#NET PPCSystem/edk_blackbox/ppc405_0/C405RSTCHIPRESETREQ TIG;
#NET PPCSystem/edk_blackbox/ppc405_0/C405RSTCORERESETREQ TIG;
#NET PPCSystem/edk_blackbox/ppc405_0/C405RSTSYSRESETREQ  TIG;

#NET \"PPCSystem/edk_blackbox/sys_bus_reset*\" TIG;
#NET \"PPCSystem/edk_blackbox/plb_PLB_Rst*\" TIG;
#NET \"PPCSystem/edk_blackbox/opb_OPB_Rst*\" TIG;
"
fi